package org.erp.spu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.erp.spu.mapper.SpuCategoryBrandMapper;
import org.erp.spu.entity.SpuCategoryBrand;
import org.erp.spu.service.SpuCategoryBrandService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分类品牌关系表(SpuCategoryBrand)表服务实现类
 *
 * @author dingding
 * @since 2025-11-05 13:15:58
 */
@Service("spuCategoryBrandService")
public class SpuCategoryBrandServiceImpl extends ServiceImpl<SpuCategoryBrandMapper, SpuCategoryBrand> implements SpuCategoryBrandService {


    /**
     * 查询所有数据
     *
     * @param
     * @return
     */
    @Override
    public List<SpuCategoryBrand> getList(SpuCategoryBrand spuCategoryBrand) {
        LambdaQueryWrapper<SpuCategoryBrand> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SpuCategoryBrand::getDelFlag, 0);
        return this.baseMapper.selectList(queryWrapper);
    }
}

